<?php

namespace Category;

/**
 * mysql数据库连接类
 */
class CategoryMysqlModel extends \Mysql\MysqlBase {

    /**
     * 表名
     * 
     * @var string
     */
    protected $_tableName = 'category';

    /**
     * 表的主键名
     * 
     * @var string
     */
    protected $_primaryKey = "category_id";

    /**
     * 类实例
     * 
     * @var \Category\CategoryMysqlModel
     */
    private static $_instance = null;

    /**
     * 获取类实例
     * 
     * @return \Category\CategoryMysqlModel
     */
    public static function getInstance() {
        if (!(self::$_instance instanceof self)) {
            self::$_instance = new self();
        }

        return self::$_instance;
    }

}
